package day01;

import java.util.Date;

public class Homework3 {
    public static void main(String[] args) {
        new Thread(()->{
            while (true){
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                Date date=new Date();
                System.out.println(date);
            }
        }).start();
    }
}
